import axios from "@/util/request";
/**
 * 获取加密字符串，并对结果进行缓存
 */
export function getEncryptedString() {
    return axios({
        url: "/login/getEncryptedString",
        method: "GET",
    });
}

/**
 * 登录接口
 */
export function login(parameter) {
    // console.log("params", parameter);
    return axios({
        url: "/login/handleLogin",
        method: "post",
        data: parameter,
        headers: {
            "Content-Type": "application/json;charset=UTF-8",
        },
    });
}

/**
 * 退出接口
 */
export function logout() {
    return axios({
        url: "/login/handleLogout",
        method: "post",
    });
}

/**
 * 获取用户信息接口
 */
export function getLoginUserMessage() {
    return axios({
        url: "/login/getLoginUserMessage",
        method: "post",
    });
}
